import { Injectable } from '@angular/core';
import { ACLCanType, ACLType } from '../../types';

@Injectable({ providedIn: 'root' })
export class BaseAlcConfig {
    /**
     * Router URL when guard fail, default: `/403`
     */
    guardUrl? = '/403';

    /**
     * `can` before execution callback
     */
    preCan?: ((roleOrAbility: ACLCanType) => ACLType | null) | null;
}